package com.itheima.test;

import com.itheima.config.SpringConfig;
import com.itheima.dao.impl.ResourcesDaoImpl;
import com.itheima.service.ResourcesService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author ChaunceyZhang
 * @date 2022-10-18 16:14
 * @blog1 https://zephyr-cyber.github.io/
 * @blog2 https://www.yuque.com/gougougou-xwscx
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SpringConfig.class)
@EnableAspectJAutoProxy
public class ProcessDemo {

    @Autowired
    private ResourcesService resourcesService;

    @Test
    public void test(){
        boolean flag = resourcesService.openURL("http://pan.baidu.com/haha", "root ");
        System.out.println(flag);
    }
}
